Machine

@Serializable
data class Machine(val id: Int, val item: Handle.Named<Item>, val move: Handle.Named<Move>, val versionGroup: Handle.Named<VersionGroup>) : Model(source)

Machines are the representation of items that teach moves to Pokémon. They vary from version to version, so it is not certain that one specific TM or TR works in every game. See: https://pokeapi.co/docs/v2#machines

Parameters

id

The identifier for this resource.

item

The TM or HM item that corresponds to this machine.

move

The move that is taught by this machine.

versionGroup

The version group that this machine applies to.

Constructors

Link copied to clipboard
constructor(id: Int, item: Handle.Named<Item>, move: Handle.Named<Move>, versionGroup: Handle.Named<VersionGroup>)

Properties

Link copied to clipboard
open override val id: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard